import { Module } from "vuex";
import {TagsViewRoutesState, RootStateTypes} from '@/store/interface/index'
const tagsViewRoutesModule: Module<TagsViewRoutesState, RootStateTypes> = {
    namespaced: true,
    state: {
        tagsViewRoutes: [],
        isTagsViewCurrenFull: false
    },
    mutations: {
        getTagsViewRoutes(state, data: object[]){
            state.tagsViewRoutes = data
        },

    },
    actions: {
        async setTagsViewRoutes({commit}, data: object[]){
            commit('getTagsViewRoutes', data)
        }
    }
}
export default tagsViewRoutesModule;
